package com.JZ.QM.feign;
import com.JZ.QM.common.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: cyc
 * @email cyc@gmail.com
 * @date: 2020/7/3 8:54
 */
@FeignClient("investment-advisor-service")
public interface CombinationsFeignService {

    //通过风险等级来获取对应的组合信息列表
    @RequestMapping("/combinationBaseInfo/getCombinationDetailInfo")
    CommonResult getCombinationList(@RequestParam("comBaseId") Long comBaseId,@RequestParam("riskLevel") Integer riskLevel);

    //获取组合收益信息列表
    @RequestMapping("/combinationBaseInfo/getCombinationListsByIncome")
    CommonResult getCombinationListByIncome();

    //通过组合id获取组合的基本信息
    @RequestMapping("/combinationBaseInfo/getCombinationBaseInfoEntity")
    CommonResult getComBaseInfo(@RequestParam("comBaseId") Long comBaseId);

}
